package com.lovo.test;

import java.util.Properties;

public class Zuoye {
    public void zuoye() {
        String url = "http://www.lovo.com/index?name=aaaaaa&age=20&gender=男";
        Properties properties = new Properties();
        String[] str2 = null;
        String[] str = url.split("\\?");
        String[] str1 = str[1].split("&");
        for (String obj : str1) {
            str2 = obj.split("=");
            properties.setProperty(str2[0], str2[1]);
        }
        Util.outputproperties(properties, "zuoye.properties");
        String result = Util.inputproperties("zuoye.properties", "name");
        System.out.println(result);
    }

    public static void main(String[] args) {
        Zuoye z = new Zuoye();
        z.zuoye();
    }
}
